import request from '@/utils/request'

// 查询居民医保申报率明细列表
export function listSecurity(query) {
  return request({
    url: '/towns/security/list',
    method: 'get',
    params: query
  })
}

// 查询居民医保申报率明细详细
export function getSecurity(id) {
  return request({
    url: '/towns/security/' + id,
    method: 'get'
  })
}

// 新增居民医保申报率明细
export function addSecurity(data) {
  return request({
    url: '/towns/security',
    method: 'post',
    data: data
  })
}

// 修改居民医保申报率明细
export function updateSecurity(data) {
  return request({
    url: '/towns/security',
    method: 'put',
    data: data
  })
}

// 删除居民医保申报率明细
export function delSecurity(id) {
  return request({
    url: '/towns/security/' + id,
    method: 'delete'
  })
}
